package com.oig.sys.file.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;
import java.io.Serializable;


/**
 * @author wuxl
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "tb_bus_file_config")
public class TbBusFileConfig implements Serializable {

	/**
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Integer id;

//	/**
//	 */
//	@Column(name = "system_id")
//	private Integer systemId;
//
//	/**
//	 * 应用名称
//	 */
//	@Column(name = "system_name")
//	private String systemName;

	/**
	 * 主业务类型，代理、仓储、运输
	 */
	@Column(name = "business_type")
	private String businessType;

	/**
	 * 单据类型 主业务下很多具体单据
	 */
	@Column(name = "relation_type")
	private String relationType;

	/**
	 */
	@Column(name = "bucket_name", length = 32)
	private String bucketName;

	/**
	 */
	@Column(name = "create_id")
	private Integer createId;

	/**
	 */
	@Column(name = "create_name", length = 32)
	private String createName;

	/**
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
	private java.util.Date createTime;

	/**
	 */
	@Column(name = "last_update_id")
	private Integer lastUpdateId;

	/**
	 */
	@Column(name = "last_update_name", length = 32)
	private String lastUpdateName;

	/**
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "last_update_time")
	private java.util.Date lastUpdateTime;

	/**
	 */
	@Version
	@Column(name = "version")
	private Integer version;

	/**
	 */
	@Column(name = "tenant_id")
	private Integer tenantId;

	/**
	 */
	@Column(name = "tenant_name", length = 128)
	private String tenantName;


	/**
	 */
	@Column(name = "check_id")
	private Integer checkId;

	/**
	 */
	@Column(name = "check_name", length = 32)
	private String checkName;

	/**
	 * 复核备注
	 */
	@Column(name = "check_remark")
	private String checkRemark;

	/**
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "check_time")
	private java.util.Date checkTime;

	/**
	 * 文件大小限制
	 */
	@Column(name = "file_size")
	private String fileSize;

	/**
	 * 文件类型限制 多种类型，逗号","分隔
	 */
	@Column(name = "file_types")
	private String fileTypes;

	/**
	 * 通用状态
	 */
	@Column(name = "status")
	private String status;
}
